document.addEventListener("DOMContentLoaded" , function () {
    var scale = 1 / window.devicePixelRatio;
    console.log(scale)
    document.querySelector("meta[name='viewport']").setAttribute("content", 'width=device-width,initial-scale=' + scale + ',maximum-scale=' + scale +
        ',minimum-scale=' + scale + ',user-scalable=no');

    //获取屏幕高度和宽度
    var widthMax = window.innerWidth
    console.log(widthMax)
    var heightMax = window.innerHeight
    console.log(heightMax)

    var fontSize = widthMax / 15

    //设置body的font-size
    document.documentElement.style.fontSize = widthMax / 15 + 'px';

})